home *** CD-ROM | disk | FTP | other *** search
- Dream Child #26 @7474
- Sat Apr 18 12:54:12 1992
- 5[7MS5] 7: 5[2Reply Not Needed.5]
- 3-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
- Satan3.mod
-
- Done by unfamous SATAN
-
- This is a lsd mod which I rewrote to have configuarable emergency chat password
- so that uses who hav the same bbs will not know the emergency chat password
- so that you will not be bugged by users
-
- + Add Line
- - Delete Line
- * Exsisting Line
- ! Modify Line
-
- ---------------------------------------------------------------------------
- STEP ONE
- File : BBSUTL.C
- Function : void reqchat()
- --------------------------------------------------------------------------
-
- * pl("Chat call turned ON.");
- * nl();
- * }
- * }
- * } else {
- ! prt(1,"Sysop is not available. Is this an EMERGENCY?");
- + if (yn()) {
- + prt(1,"Enter EMERGENCY Chat password :");
- + mpl(7);
- + input(s,7);
- + if (strcmp(s,"syscfg.chatpw")==0) { /* Insert here your chat password */
- + nl(); nl();
- + prt(1,"Paging Sysop...");nl();nl();
- + noise(200,1800,100,1,15);prt(1,"."); /* Well... Change This to */
- + noise(200,1800,100,1,15);prt(2,""); /* Your Handle, Don't keep */
- + noise(200,1800,100,1,15);prt(3,"."); /* mine please! */
- + noise(200,1800,100,1,15);prt(4,".");
- + noise(200,1800,100,1,15);prt(5,"");
- + noise(200,1800,100,1,15);prt(6,".");
- + noise(200,1800,100,1,15);prt(7,".");
- + noise(200,1800,100,1,15);prt(8,".");
- + noise(200,1800,100,1,15);prt(9,".");
- + noise(200,1800,100,1,15);prt(1,".");
- + noise(200,1800,100,1,15);prt(2,".");nl();
- + noise(200,1800,100,1,15);prt(3,".");
- + noise(200,1800,100,1,15);prt(4,".");
- + noise(200,1800,100,1,15);prt(5,".");
- + noise(200,1800,100,1,15);prt(6,".");
- + noise(200,1800,100,1,15);prt(7,".");
- + noise(200,1800,100,1,15);prt(8,".");
- + noise(200,1800,100,1,15);prt(9,".");
- + noise(200,1800,100,1,15);prt(1,".");
- + noise(200,1800,100,1,15);prt(2,".");
- + noise(200,1800,100,1,15);prt(3,".");
- + noise(200,1800,100,1,15);prt(4,".");
- + nl();nl();
- + pl("If The SysOp is Around, He will Answer.");
- + } else
- + pl("Wrong Password!");
- + } else {
- + nl();nl();
- ! pl("The SysOp isn't here, use Feedback instead.");
- ! nl();
- ! strcpy(irt,"Tried Paging.");
- ! byline[0]=0; /* if you have byline */
- ! imail(1,0);
- ! }
- * }
- *}
-
-
-
- ---------------------------------------------------------------------------
- STEP TWO
- File : BBSUTL.C
- Add complete void
- --------------------------------------------------------------------------
-
- + void input_chatpw()
- + {
- + int ok;
- + char s[81];
- +
- + do {
- + nl();
- + npr("3Please Enter New Chat Password");
- + outstr(":");
- + mpl(20);
- + inputl(s,20);
- +
- + ok=1;
- + if (strlen(s)<3)
- + ok=0;
- + } while ((!ok) && (!hangup));
- + if (ok)
- + strcpy(syscfg.chatpw,s);
- + else
- + npr("3Password Not Changed.");
- + }
-
- ---------------------------------------------------------------------------
- STEP THREE
- File : BBS.C
- Function:getcaller();
- --------------------------------------------------------------------------
-
- + case '!': /* or any other unused case */
- + if (ok_local()) input_chatpw();
- + break;
-
- ---------------------------------------------------------------------------
- STEP THREE
- File : VARDEC.H
- --------------------------------------------------------------------------
-
- /* STATIC SYSTEM INFORMATION */
- typedef struct {
- char newuserpw[21], /* new user password */
- + chatpw[21], /* Emergency chat password */
- systempw[21], /* system password */
- msgsdir[81], /* path for msgs directory */
- gfilesdir[81], /* path for gfiles dir */
- datadir[81], /* path for data directory */
- dloadsdir[81], /* path for dloads dir */
- ramdrive, /* drive for ramdisk */
- tempdir[81], /* path for temporary directory */
-
-
-
- ---------------------------------------------------------------------------
- STEP THREE
- File : Any
- --------------------------------------------------------------------------
-
-
- add intire void
-
- void noise(int startfreq, int endfreq, int step, int paws, int repeats)
- /*
- * This function takes several parameters. Depending on these parameters,
- * a noise will be made locally. We use this for such things as newuser
- * logon, file access, chain access, logoff, chat, etc.
- *
- * The parameters are as follows:
- *
- * startfreq : The start frequency in hertz.
- * endfreq : The end frequency in hertz.
- * step : The number of hertz to step between startfreq and endfreq.
- * This number should be negative if endfreq is less than
- startfreq.
- * paws : The paws in milliseconds between repetitions.
- * repeats : The number of times to repeat the entire sequence.
- *
- * ANSI not required.
- *
- */
- {
- int i,x,z;
-
- x=0;
- if (startfreq<endfreq) {
- do {
- z=startfreq;
- do {
- sound(z);
- delay(paws);
- z+=step;
- } while ((z <= endfreq) && (!hangup));
- x++;
- } while((x < repeats) && (!hangup));
- } else {
- do {
- z=startfreq;
- do {
- sound(z);
- delay(paws);
- z+=step;
- } while ((z >= endfreq) && (!hangup));
- x++;
- } while((x < repeats) && (!hangup));
- }
- nosound();
-
- 1[ 2The 6P5aradox 2* 1(714) 820 - 7360 3@77474 2* 5SNARF3able 2* 1SysOp Auto-Validation 1]
- 1[ 7ZBS2/7Radio Drama Net subtype 37474 2* 5Rialto, Ca 2* 3SysOp 2: 4Slartibartfast1 ]
- 1[ 34.20e 1modded 2* 660 5minutes a day 2- 5It would be 6masochistic 5not to call!!! 1]